// Project: EnumDataSourceControl, File: EnumTypeInfoView.cs
// Namespace: Salient.Web.UI.WebControls, Class: EnumTypeInfoView
// Author: Sky Sanders (sky.sanders@gmail.com)

// Creation date: 10/15/2008 8:24 PM
// Last modified: 10/16/2008 7:20 AM


#region Using directives
using System;
using System.Collections.Generic;
using System.Web.UI;
using System.Collections;
#endregion

/// <summary>
/// Salient. web. UI. web controls
/// </summary>
namespace Salient.Web.UI.WebControls
{
    /// <summary>
    /// 
    /// </summary>
    public class EnumTypeInfoView : DataSourceView
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="owner"></param>
        /// <param name="info"></param>
        public EnumTypeInfoView(EnumDataSource owner, EnumTypeInfo info)
            : base(owner, info.FullName)
        {
            Values = info.Values;
        } // EnumTypeInfoView(owner, info)

        /// <summary>
        /// 
        /// </summary>
        public List<EnumValueInfo> Values { get; private set; } // Values

        /// <summary>
        /// 
        /// </summary>
        /// <param name="arguments"></param>
        /// <returns></returns>
        protected override IEnumerable ExecuteSelect(DataSourceSelectArguments arguments)
        {
            return Values;
        } // ExecuteSelect(arguments)

    } // class EnumTypeInfoView
} // namespace Salient.Web.UI.WebControls
